import subprocess

def cmdexe():
	cmd = 'adb'
	return str(subprocess.Popen(cmd, stdout=subprocess.PIPE).stdout.read())

def cmd_returncode(cmd):
	p = subprocess.Popen(cmd, stdout=subprocess.PIPE,shell=True)
	p.communicate()
	return p.returncode
	
print(cmdexe())